const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"/1.txt");
var fd = fs.openSync(filePath,"r");

var buf = Buffer.alloc(10);
var result = fs.readSync(fd,buf);
console.log(result);
fs.closeSync();